package com.cskaoyan.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
@Data
public class Goods {
    private Integer id;

    private String goodsSn;

    private String name;

    private Integer categoryId;

    private Integer brandId;

    private String[] gallery;

    private String keywords;

    private String brief;

    private Boolean isOnSale;

    private Short sortOrder;

    private String picUrl;

    private String shareUrl;

    private Boolean isNew;

    private Boolean isHot;

    private String unit;

    private BigDecimal counterPrice;

    private BigDecimal retailPrice;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date addTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date updateTime;

    private Boolean deleted;

    private String detail;


    public Goods() {
    }

    public Goods(Integer id, String goodsSn, String name, Integer categoryId, Integer brandId, String[] gallery, String keywords, String brief, Boolean isOnSale, Short sortOrder, String picUrl, String shareUrl, Boolean isNew, Boolean isHot, String unit, BigDecimal counterPrice, BigDecimal retailPrice, Date addTime, Date updateTime, Boolean deleted, String detail) {
        this.id = id;
        this.goodsSn = goodsSn;
        this.name = name;
        this.categoryId = categoryId;
        this.brandId = brandId;
        this.gallery = gallery;
        this.keywords = keywords;
        this.brief = brief;
        this.isOnSale = isOnSale;
        this.sortOrder = sortOrder;
        this.picUrl = picUrl;
        this.shareUrl = shareUrl;
        this.isNew = isNew;
        this.isHot = isHot;
        this.unit = unit;
        this.counterPrice = counterPrice;
        this.retailPrice = retailPrice;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.deleted = deleted;
        this.detail = detail;
    }
}